package org.example.jiap.bk.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.jiap.bk.model.pojo.JiapUserPOJO;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper

@Component
//mapper属于Dao层,方法名命名规则<表名_动作>
public interface JiapUserMapper {
    void user_insert(@Param("userreg") JiapUserPOJO userreg);

    void user_update(@Param("userupdate") JiapUserPOJO userupdate);

    JiapUserPOJO user_select_account(@Param("account") String account);

    JiapUserPOJO user_select_accpwd(@Param("account") String account, @Param("password") String password);

    List<JiapUserPOJO> user_selectalluser(@Param("createUser") String createUser);

    //List<JiapUserPOJO> user_selectmix(@Param("userselectmix") JiapUserPOJO userselectmix);

    List<JiapUserPOJO> user_selectmix(String pthone, String userName, String account, int createTime);
}
